package com.kgcx.common.annotation.validator;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created by Administrator on 2017/2/20.
 */
@Target({ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface NumberValidator {
    String value();

    long[] range() default {};

    long max() default Long.MAX_VALUE;

    long min() default Long.MIN_VALUE;
}
